package top.lyc829.mymusic.model.http.api

import retrofit2.http.GET
import retrofit2.http.Query
import top.lyc829.mymusic.model.bean.PlayListResult
import top.lyc829.mymusic.model.bean.TopPlayListResult

/**
 * @Author lyc
 * @create 2021-07-17 23:13
 */
interface PlayListService {

    @GET("/playlist/detail")
    suspend fun getPlaylistDetail(@Query(value = "id") id: Long) : PlayListResult

    @GET("/top/playlist")
    suspend fun getTopPlayList(
        @Query(value = "offset") offset: Int,
        @Query(value = "limit") limit: Int,
        @Query(value = "order") order: String,
        @Query(value = "cat") cat: String,
    ): TopPlayListResult
}